package com.binance.dynamodb.rule;

import lombok.extern.log4j.Log4j2;

// 默认的表名的映射规则
@DynamodbTableRuleMapping(tableName = "Default")
@Log4j2
public class DefaultDynamodbTableRule implements DynamodbTableRule {
    @Override
    public String execute(String logicTableName, String env) {
        String tableName = logicTableName + "_" + env;
        log.info("DefaultDynamodbTableRule tableName={}", tableName);
        return tableName;
    }
}
